Fix auth hook.. sort of