Fix several possible exception
Common cluster env config