fixed day shown as undefined.