fix a type error in article controller