Fix masonry issues