fix truncated keys