Fix first-time materialization of attribute views