minor fix in dao layer