Deactivate method not working