Gitlab CI Conditions fail when there are multiple conditions and jobs

I got two separate job where each job specify a path in which a change in that will trigger and also a tag.

First.yml:

only:
    changes:
        - src/Web/**
    refs: 
        - tags

Second.yml:

only:
    changes:
        - src/UI/**
    refs: 
        - tags

these two files are included in a master gitlab-ci.yml.

Expected behavior:

a tagged commit with in directory like src/web/code.c should only trigger First.yml

Actual behavior

any tagged commit in any of these directories will trigger both jobs to execute.

Edited by Hassan Hashemi