fixed unneded check introduced by copy&paste