improve masonry.add language decide.