fix boolean precedence error leading to inaccurate results on the new customer