fixed a bug in create product