fixed small 32bit bug