ENG-6152 prevent segv