fixed problem when converting from latex