some more resize safety