Repaired a few errors