Try and fix the horribly broken codes