Fixed potential wrong $limit parameter in the child cursor if a $limit is provided to the parent.