fix duration handling on Safari
0.3.1