Fixing bad this reference