Fixed invisibility bug and crash related to cChunkStay.