fix for deposit copy bug