curl fix, thanks @Jorge-C