Fix get config on models