bugfix for Solaris