Notes changes

Avoiding some errors and some bugs when creating empty notes