curl bugfix