Fixed crash with messages sent to trees.