finally got delete empty category to work