A note on generalized inverses