fixed some parts of discrete OMP