fixed the nil name problem
corrected error in products show page for categories