Fixed up some code errors