JGraph crashing solved