bug fix for masonry