Fixing some bug in the categories