fix a bug in reading the boolean environment variable