fix compile errors caused by an incompatible changes in JSX