fixed the array out of boundary issue. (open app -> login -> notification page -> logout -> sign in ... can reproduce the problem)