fix interval and repetition options

It seems that interval and repetition options need to be converted from string to number in initialization.