fix date type rendering. code adjustments