fixed array not refreshing