Fixed issues with masternode update