Typecast what the session returns to reduce invalid array errors
Removed whitespace