Fixed register option to iterate through the correct array