Try increasing the acceleration to accelerate faster and decelerate slower so it passes the resonant frequency more quickly.