fix reference to map