Migration and auth bug fix.