bug fix, period edit variable not found