fixed the None return from the curl"