random seed problem fixed