fixed bug in resizing