Revert "Debug"

This reverts commit a60950ba9d828db2c09c923903a688366198fd4e.
Fix if condition