fix a stupid fatal error
Fix some broken things with sessions