fixed delay write issue