Fixed a bug that prevented auto-configuration