Fixed bugs in members API.