fix notices while override some constants in config.local