Fixing curl call going out twice.