fixed ALLOW_DEVICE_CONFIG