Fixing the extraneous end of commented if