C51 is under construction so it was C52. Left for sydney and right for canada was done correctly. It was past the right for canada where the wrong door was opened (and the other ones blocked and closed) causing the problem.
It wasn't caught by staff so the whole 777-200 unloaded into the customs hall from domestic travel.