used dirty hack to avoid crash