fix bonus out of 'scope' issue