fixed problem with limit