Fixed bug in member status query.