Remove the dependency of lodash, fix the compositor bug