Bugfix in third order perturbation