A couple of bug fixes in WineDao