Whoops..fix getBkTree function