Fixed error

Fixed error in tailbeat cycle of vid code