improved item renderer and fixed a bug