frame duration fix