Fixed issue with Activity restarts.