fix rendering issue with location and switch room