fixed handling of double doors, fix #1535