fix postinst with new function