quick hack to avoid console crash