fixed null language bug