fixes compile error on array map