Write empty map instead of nil