fix some bugs of view member detail dao implementation