Fixed stupid scope referencing bug