Fixed the sinkhole functionality