fix quotes state