fixed filling of registers