Fixed some typos/accidentally deleted code