fixed React warning