Resize bugs fixed