Errors fixed to pass the tests.