fix precision and init

Change-Id: Icc59f421b7c5c51f733e04817c41e7eb21056ab9