Bug fixes for determining author_id