Bug fixes, got rid of zero-byte backup log