Added checks to avoid ArrayOutOfBound exception instead of the real exception about wrong cluster