Fix views warnings.

#4168 

Adding an update and running ```update.php``` gives:
![selection_014](https://f.cloud.github.com/assets/4497748/1397738/44d28c98-3c8e-11e3-94b3-1f05cfa9d1e5.png)

also, this error appeared in every view after clearing the cache but now it seems be ok.