When you say connecting 9V to the arduino, is it just the supply?
I know nothing about the library you are using but is there anything in your program that communicates via the USB? Would explain why it isn't working when removed.
it turned to be caused by the arduino it self,
seems it doesnt regulate the voltage efficiently .
so i powered the module by 6 volts and 5 volts externally and it worked
Also, I found out that some of the datasheet has errors. I can not find the link where I read it, but I have attached the sketch from the link. It may be helpful to you as well.