Fix wrongly enabled save button for references

Change-Id: I41da310f070d8f4f0c38f51e15fe21e7a870a9c7