fix the register background problem