Fixing a border issue for chemical formula