fixing condition
maybe this is a fix?