the derivatives changed in some instances compared to the old implementations. this patch updates them to the new versions. thanks to [at]atgeirr for discovering this.