I changed a little bit condition where plugin loads required items to avoid OutOfBoundException.