Attempt to fix issue with curl resource sometimes being passed