Gui zoom fix

Fixes the two GUI zoom bugs and the parser's memory leak problem.