Trivia CFL rule interpretation

Team A player number 21 attempts a field goal from Team B's 34-yard line. Before the ball crosses the line of scrimmage, it bounces off the helmet of Team A player #52, who has lined up ahead of the kicker and not behind him. The ball proceeds through the uprights and over the cross bar. The Field goal is ruled good.

Was the call correct, or wrong? This is not a test, just an interesting scenario I came across.