bugfix and corrected config