CTRE Swerve Generator Pathplanner

I have a problem with auto, instead of going forward the swerve is going to the left. This was a problem yesterday with teleop but I just reset the gyro in initialization for teleop. I tried to do the same for auto in Robot.java but then it caused some complications. Does anyone know any fixes?