config fix with models