fixed issue with duration field