Fixed reference check (proper class name)

properly pass parameters by reference