fix bug in dao impl