fixed major bug! tmp dir got deleted without avi being copied