fix context issue, and fix place refresh