Fixed C extension sandbox behavior