Fixed array_map issue in settings. Closes #2106 #2104