Fix some associations and attendance creation