Fixed small scope issue when using this instead of self