Fixed 2 errors