[fix] avoid warnings while creating a category