Draw map now works. Fixed segfault on close.