Hack fix for crashes on build server. Cosmic TODO to fix it later.