Fixed masternode registration on startup aswell as some weird bugs