Fixes init and destruct bugs in NewRefereeModule.