fixed initial value issue