Bug fix on cache system of api elections search