Fix bug in number parser