better move and resize, corrected assertion failure