fix strict Resize error