fix reference edit issue