Fix the UI/create env function with label workaround