fixed another inline if statement syntax issue