Fix bugs in room delete and map panning.