Fixed some bugs in rubber tree.