small bug fix in init