Remove all the zeros from velocity inputs