Fix a bug that system ignores module priority.