appdata: Fix negotiation issue and blocking write