Fixed forms bug in tree widget