As mentioned in ticket, you don't deal with duration being an empty string here.