Fixed bug in keyfind.