fix 'if-else' condition