fix masterkey