fix rand display on submit alert.