fix of resizing regression