fixed some door bugs