Effects of thermal inflation on small scale density perturbations