Fix spacing and partial derivative