Arduino Acts weird when using servo libary?

I thought that was the problem at first, but I got a dedicated battery pack for the motors. The arduino is powered by a 9v battery.