publish fix crash