Remove some unwanted codes.