Fixed issue with invalid activity