Fix authorized handler