Fix react warning