bug fixed on register date