Fix submitting references