fixed bug: switsched source and destination