fixed a bug in categories show controller