putchar bugfix