Fix bugs in 'sample_all_2d_gabor', myscript