fix a bug of limit