wrong array key fixed