dl code bug fix