fixed bug about "0" input