Moved assigment of refKey variable after searchResultData