Fix line shape problems