Fixed parse error #6998

I think this was the intended code.