Fixed eval in if statement