hardware: some fixes
hardware: fixed some conversion issues and stuff