Changed the session_key None error fix to be actually fixed