patch for advagg and labjs to play nice