Fixed a few bugs with octal numbers