Fix date bug on procedures.