Fix #298 infinite loop