fix some bugs in Softwaremanagment