uninstall function fixes