Two small bugs fixed in nanocat

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>