Fixed bug when item not available.