fixing random