fixed author association so it refers to id rather than name