fixing errors in product create