fix dedate bug: Bad substitution