strange behavior occurs when using "map"

to add more to the context, the reason i think it’s “map” that causing the issue is, i have a separated gold reward system that awards gold every time the trigger devices get triggered. and it works perfectly all the time, even when player gets the abnormal high score.

1 trigger hit = 1 gold #works perfectly fine
30 trigger hit = 1 score #player gets abnormal high score randomly