fixed a bug with src vs dest