fix typo on ref
fix the date bug