Bug fix in activity file