fix stupid dict deletion error