Use %04x not %04d

Fix for Issue #2