Fix Bug when using Frameskip and Threading