Fix for json suggestions length where Array prototype is manipulated