A power tool is provided including a housing and an electric brushless DC (BLDG) motor housed inside the housing. The motor includes a stator, a rotor pivotably arranged inside the stator, and a motor end cap arranged at an end of the stator. At least one of the motor end cap or the stator includes flexible posts that engage a surface of the other one of the motor end cap or the stator to absorb tolerances associated with the stator and the end cap.