Fixed bug with truncated keys.