Correct refresh canvas and numeric panel when select invalid or empty file after a valid one