updated categories on post update to work correctly, fixed attachment param that shouldn't be there