fix de-register