Refactored md2 class, crash on startup