still having problems with null calculation. Works only after soft reset.