fix argument type in if