bug fixes w/ detached activities