Remove strange if, set default configuration if not set but let it be overwritten by the user