fix some bugs in Softwaremanagment
fix some bugs in Softwaremanagment