There are two issues with this code. In the first case you are making a copy, in second - moving. Hope this helps.
Report message to a moderator