core: Setting classes for each line [bugfix]