fixes number recognition and runtime bug

- introduced in last few commits