Fixing my errors in DataManager