java.lang.IllegalArgumentException: Negative delay