fixed null pointer during encounters