Fixed a bug which will cause single module build fail