fixed bug with create method