Fixed issues with max member functionality