Fix for issue #40, infinite loop on parsin "<r"