fixed reference template render wrong selected
fixed date plain format