fixing occasional require issue