Fixed the bug which caused dijit clash and widget instantiation problems.