macosx: fix for itemmanager on mac