local_history fix