two type errors

Sorry. Please ignore my previous pull request.