Fix session handling of booleans.