fixed this scope in callbacks