critical fix: bug while member exit -- null pointer exception