fix crash on digging null object