fixed missing sidebar after window resizing