fix f011 register writing bug. Issue #28