fix bug on the member existence check