Fixed masonry bug on first load.