Fixed wrong condition