fix goto in if