Fixed bug which caused the action bar to got out of sync after pause/resume.