bug fix with clone