Fix lack of constructor which in turn was causing an error when creating a new entity