Fixed the sanitization bug