fixed bug but set compute derivative to zero vector