fix delay lib