fixed keyed table issue, thanks Denes