Fixed bug that depend not check when offline translation is enable.