Fixed error with 'this' keyword