Doesn't work if setting limit to 0

hi found a bug where is you set the limit to zero its not working thanks 

Setting 0 is usually making things infinite, try setting as -1

noted thank you