Fixed scope error (replaced @ with self)