Fix crashing problem when going into the list views