Work around infinite loop