Fixed initialization when saved state file is empty