fix getActivity NPE
add widget value rounding