fixing random bg color to middle color