Fix key error on 32 bit systems