Fixed minor bug in calculation of effective potential derivatives