Fix scoping bug in data_manager

thisContext was not referring to the correct object...