Arduino Acts weird when using servo libary?

The H-Bridge chip is powered by the 5v from arduino, but the motors are power from an external battery pack.