Fixes problem in getRefItems() method on Solaris