fixing bug with time calculation so short movies will work as well