Fix line positions