Fix small issue with wrapping if then statement syntax error