Fixed submitting references