Fix undef error with render_san api call