Fix grep condition