Fix use of APP_DOMAIN constant