fix day0 bug