Random element creation fixed.