Fix notices in views