fixed a bug when saving incidents