Some fixes on views and association