fix keyloading