Catch number format exception (fix #21)