Fixed erroneous tree type error