fix a bug when delay is 0

When delay is 0, !delay is true and callback will be 0.