Fix resize error