fixed bug with input Nan and Null, add button Reset