Search URL issue with WordPress Custom Google Search Plugin

I am using a different directory for WordPress. When I search using the search box, instead of requesting to the url example.com/?s=search-term it's requesting to the url example.com/wordpress-directory-name/?s=search-term

Please fix this issue.