Fix a few invalid number exceptions