setState bug fixed.