Prevent bug when creating new product