Fixing Masonry bug