fix so it's not crashing when delay is on