Folded-like shape

Did you copy the base sketch, move it up, repeat for the top and then loft them together? Try rotating the sketches before lofting.