Fix console plugin infinite loop