Got the wrong logic for the return value of is_master_side, reversing the tests