fix create and restore (command line)