fix some bugs and improve speed of -volume-tfce