Fixed overwritten codes