Fixed: Error emitted in an infinite loop