fix react bug