fix reference markers