Fixed memory leak in Nav & millions of bugfixes.