fixed bug while using rsync