fix random resizes