fix continuous mode