Fixes a mistake on a condition