Fixed reference to wrong array as source