fixed issue with create method