fix for pressing delay multitple times