fixed bug with $render and setDate"