fix some bugs of sunos