offending code corrected in articles controller