bug fixes global vars inter activities