Bug fix. Correcting activate/deactivate hooks.