The only way to avoid not being penalized is to have an exemption certificate. I'm not sure who told you that you would not be penalized for the two months. Also, another reason could be that you got bumped up into the next tax bracket with the additional money you made.