Fixing to allow writing to registers. Bug was introduced in previous commit.