fix semantic mode loading