Fix setting of member var in constructor