Clears up some errors. And fixes crash on dismissing edit localisations view controller.