fix crash after save product