fix for unserializable environment value