fixes #4897 Error when you click on categories re-order