Fix permit update