Various bug fixes.
Working with disable register