ugly patch for weird error