Switched elif statement branches to delete category correctly. Resolves #9