fixed resize()