fixed a bug in action bar context changing