[minor] [fix] added end of life condition in item query