mode bug fixed.