Same $BITRISE_BUILD_NUMBER is assigned to 2 different builds

I have notices branch and its pr have same build number:

Any ideas to make sure it always gets incremented ?