Fix resize bug
Fix resize bug