sort of fix random crash