fix masonry loading issue