envx: added an error check for normalizing option