Fix for encounters on doors (seems to work)