fixed bug, wrong mesh after resizing