fixed a bug in updating gui internal model on module uninstall