Fixed parsing of duration in animation programs.