render null then exception bug fixed