Fix for key exception on 32 bit Windows system