fixed exit in ththe wall bug