fixed partial rendering bug