ensure we don't get extraneous bits when finding activity

fix #2507