Fix #bar display when duration is 0 in the database