Fix passport deserialize function