Fix searching bug where activity was not being created