fix category auto-complete