bug fix:illegal dao template