Member id was being set to the wrong value