fix reference for portability