Fixing bug comparison change of activity