fixes an issue where settings is not set