Fixed a bug in hardware-interface