complex key save fix