fixed nullpointer, when removing simulation from queue.