fixed bug concerning limit 100 versus limit 1000