fix the misplaced view warnings.