Fix setting firstTreeX