Fixed problem with use item function