fix null error on pdf rendering for notes