Fix "only localhost" bug