fix sessions
fix escaping error