Fix Resizing Bug