Fixed misspelled length
Fixed invalid type
See email for explanation. This will be removed from this repo.