Fixed compiler issue with random block