Fixed an issue with the curl call that might interfere with sessions.