fix a bug with backup option