rendercrop NPE crash fix