added hack to get the parser to work in debug mode