fix deprecated uninstall function