Fix react warnings