Update type error
Merge pull request #11 from JoeFairburn/master

Update type error