fix note index in server side'