fixed unsafe access to ohai attributes