little fix for duration bug