remove render(null) which causes NullPointerException