fixes issue with duration

- @alexanderrich - this works for me, let me know if it works for you