Fixed #3 finally. Problem caused by minimum digits enforcement.