Fix broken register function
Check history_object in historical records