Close comments if statement correctly