fixed video() function so the reload option doesn't cause an error