Fix crash bug when timeout timer and video length were close to eachother