fixed check for settings