fixed bug when wavelet is larger than the model