Fix typo. Use settings variable to access to constants

Change-Id: Idf9c690c72cb800708cfe0e5bc65a418181c5d4f