update logic fix frame sync