FIX #20

ref require always 4 byte
Merge pull request #23 from pointhi/master

FIX #20