Fixed oversights that caused the code to not compile properly.