Fixed an issue that UIL can not be initialized on 2.x