fixing settings reference

settings is a private variable not member of the this scope