fixed bugs with clone syntax