minor check

parameters are set so small. problem. the code enters infinite loop.