Always rehash at the end of activate and deactivate