fix bug on door opening too soon