Some type comments and fix if language level is null.