fix starting point in resize
resize example