Fix duration parsing