Probably you have your "SCORE" actions under "IF any resource EXISTS" condition (or something similar). Remember that the resources that are picked up don't count. Only these laying on the ground matter, so when your bot picks up the last one, the condition becomes false.