Fixing equals condition