fixed issue where passing an int number of frames to FuncAnimate would result in error