Resize problems fix