glassficer and randomfield fix