Remove bad code fragment