fixed bug where null was confused as a config object