fixed duration not being set as int in route
Merge pull request #4 from Gerk/master

fix for duration not being set as int