fixed terry parser bug