fixing data problem