fixing bug on initializer