Fixed unknown index bug with array.result