Fixed a bug that caused namespace error