masonry bug fixing