fix broken code string