Fixed issue with rectangle edge movement.