Fix error if 'q' is used along with 'itemKey'