Fix sandbox matching with short hashes