fix boolean expression error