Fix mksnapshot