Fix the bug with passport initialization