Fixed a bug in the condition