Fixed Firefox bug on duration ending