Using "it" to refer to a person is, in fact, derogatory. It has the appearance of being derogatory because it IS derogatory.
Then it should be a simple matter of not using it anymore, now that you've been informed.
On the contrary, at the very least, it's because you don't recognize tthe...