fixed initial condition error