Fixed bug preventing the update of the peer height and improved logging