Fix on checking need for resizing