Fix label positioning in lines