Fix invalid limit and query typo