fix rectangle move