add fix for encoder with no index pulse