Bug-fix in deregistering simulation