fix a problem in save generic dao method.