fix keys to array