fixes bug in fetching history from STI models where the incorrect table name was used