Fix author routing logic