Fixed a bug in creation of opdigits