Fixed the parser to use parent windows and had an unessary boolean