fixed incorrect usage of settings variable