fix the bug with preference fragment