fix resize overwrite