Fixing bug with notes script