fixing beforecasting From State field