correct fix for 64 bit error value