fixed masonry bug