Fix bug when using internal version.