fixed typo in keyed tables, thanks Denes