bugfix when delete a register; bugfix to run on tablets;