fixing bugs in creating product