Fix form designer bug