properly replace package on update