Fixed off by one error on masonry