Fix environment bugs with FalconWorker