Fixed tree bugs in BuildSelection() function.
Fixed tree bugs in BuildSelection() function.

xhoy/otrs,s7design/otrs,xhoy/otrs,crythias/otrs,nilei/otrs,MBRG/otrs,oiami/otrs,crythias/otrs,thorsteneckel/otrs,PortgasDAce/otrs,MBRG/otrs,brandonshults01/otrs,noritnk/otrs,balazj/otrs,eliasp/otrs,crythias/otrs,capeit-tto/otrs,crythias/otrs,moritz/otrs,mburggraf/otrs,PortgasDAce/otrs,oiami/otrs,crythias/otrs,capeit-tto/otrs,s7design/otrs,PortgasDAce/otrs,s7design/otrs,vlascoder/otrs,eliasp/otrs,muehlbauer/otrs,StCyr/otrs,nilei/otrs,mbeijen/otrs-1,PortgasDAce/otrs,rudy500/otrs,oiami/otrs,MBRG/otrs,mbeijen/otrs-1,linearregression/otrs,mbeijen/otrs-1,eliasp/otrs,brandonshults01/otrs,muehlbauer/otrs,rudy500/otrs,xhoy/otrs,balazj/otrs,xhoy/otrs,rudy500/otrs,s7design/otrs,StCyr/otrs,vlascoder/otrs,nilei/otrs,linearregression/otrs,moritz/otrs,balazj/otrs,balazj/otrs,noritnk/otrs,nilei/otrs,moritz/otrs,thorsteneckel/otrs,StCyr/otrs,thorsteneckel/otrs,StCyr/otrs,eliasp/otrs,linearregression/otrs,s7design/otrs,linearregression/otrs,brandonshults01/otrs,vlascoder/otrs,nilei/otrs,MBRG/otrs,oiami/otrs,moritz/otrs,balazj/otrs,thorsteneckel/otrs,brandonshults01/otrs,PortgasDAce/otrs,brandonshults01/otrs,muehlbauer/otrs,rudy500/otrs,rudy500/otrs,mburggraf/otrs,linearregression/otrs,mburggraf/otrs,muehlbauer/otrs,eliasp/otrs,moritz/otrs,MBRG/otrs,mburggraf/otrs,xhoy/otrs,capeit-tto/otrs,mburggraf/otrs,thorsteneckel/otrs,StCyr/otrs,oiami/otrs,noritnk/otrs,muehlbauer/otrs