Fix a bug in cross app sessions that prevented log in in a certain case