Fix stupid infinite loop.