fixed regfile issue