Removing excess semi-columns