Fix bug on createOne method.