bug fixes in exception & html classes