Fix bug with long delay between the frames