fixed syntax error and updates category plugin