bug on append