Fix bug with categories module