fix cursed bug