Fixed resize, shape while dot was moved is correctly resized