Fix issue with member variables being assigned to an interface