fixed a bug caused by upgrading lodash versions