fixed bug with solaris 10