fixed a bug caused by 'path-extra'