bug fixes to the masonry