Fixed bug in clone_stamp tool that blocked the program with 100% cpu usage