Fixed up errors