Fixes session key naming and a syntax error.