Fixing URL bug with environment values