fix a bug in reading the boolean environment variable
fix incorrect convert to bool from environment variable