fix random elements