fix for duration not being set as int

Busted the whole channel, several people were complaining it was broken.  This fixes it.