fixed random selector
bug on login fixed again, generate activities needed