Error in unrelated and unincluded class, investigating possible causes