fixed for solaris