fixed bug #130, CLKIN failure