Fix crash when using ActionMode