fix bug in require class curl