fix error detecting post category