Let $F : T \mapsto S e^{\int_0^T{\mu \left(t\right)\mathrm{d}t}}$, $S \in \mathbb{R}_+^*$, and define $y \left(T\right) = \ln \left(\frac{K}{F_T}\right)$, where again $K \in \mathbb{R}_+^*$. Note that this implies $K = F_T e^y = S e^{\int_0^T{\mu \left(t\right)\mathrm{d}t}+y}$.
I want to differentiate $y$ with respect to $T$. Doing so directly yields $$ \partial_T y = \partial_T \left[ \ln \left(K\right) - \ln \left(S\right) - \int_0^T{\mu \left(t\right)\mathrm{d}t} \right] = - \mu \left(T\right) $$
However, in the paper I am reading, the author uses the chain rule and gets $$ \partial_T y = \partial_K y \times \partial_T K = \frac{1}{K} \times \mu \left(T\right) S e^{\int_0^T{\mu \left(t\right)\mathrm{d}t}+y} = \frac{1}{K} \times \mu \left(T\right) \times K = \mu \left(T\right) $$
I have to be missing something since I do not see why I would obtain two different results for the derivative. Any idea?