fix setTreeOpacity