Some fixes in device history