fixing tern