resume activity bug fixes