fix code loading