Resolving Error in Masonry