fixed negative analog value for 64bit machines