Actually fix bug when uploading state with empty state_key