fixing multiple states