fix video calculate