Fixed 2 bugs due to typos