fixed note adding bug