for empty parser bug fixing