fix UserAgent.prototype.getOps method