add check for null groupsCache, fixes #18
set intent flag CLEAR_TOP to fix issue #20