fixed error for aligned dipole