patch masonry to fix bug