Fixed a bug occuring with frame offset being None