fix to 64 bit crash