fix bug in if with more than one arg