Fixed potential error if auth code not exists