fixed a bug in the module manager and the unistall command