Merge pull request #232 from aseemmittal/dirty

Field error in register generator