fix bugs of jedi