fixed react warnings