Fixed a bug about division by zero
New register design