Fix duration being incorrect