show categories in posts and fix fatal bug