fixed react warning