Fix runtime errors with if statements.