Fix fraction in setTimeout. Closes #1827