Fixed bugs in anisotropic polarization.

Change-Id: If8e9df68f70d06a254f1978c319487cd0b4bda51