Fix error
Implement membership check