fix creation of a instance