Fixed issue with CURL