fix bug that makes notes api fail if no exclude field is set