fixed issue with local server not working