Fixed some activity pause/resume issues.
Fixed parameter escaping in Feature query.