fix offAll method - loop over object keys, not array