fixed delay time bug