fix logic error in some env and update to v1.1