fixed wrong variable name
Improved tag editing
Don't break if there are no notes