Fixed bug with validating settings