api fix
Fix debug & auth bug.