bug with null on auth