Fix the renderArea undefined bug